﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FCDB.Entity;

namespace FCDB.Repository
{
   public  class WfLogRepository:LogicBase, ILogic
    {
       public IList<WfLog> GetLogsPaged(int PageIndex, int PageSize, out int allRowsCount)
       {
           allRowsCount = DBHelper.WfLog.Count();
           int skip=(PageIndex-1)*PageSize;
          IList<WfLog> list= DBHelper.WfLog.Skip(skip).Take(PageSize).ToList();
          return list;

                    
       }
    }
}
